package com.mzj.saas.mservice.pay.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 物业房产-微信支付明细表
 */
@Entity
@Table(name = "saas_estate_wx_pay")
public class EstateWxPay{
    /*
     *商户订单号流程号
     */
	@Id
    @Column(name = "out_trade_no", nullable = true)
    private String outTradeNo;
    /*
     *订单编号
     */
    @Column(name = "order_number", nullable = true)
    private String orderNumber;
    /*
     *付款人id
     */
    @Column(name = "participant_id")
    private String participantId;
    /*
     *支付appid
     */
    @Column(name = "appid")
    private String appid;
    /*
     *支付金额
     */
    @Column(name = "pay_amount")
    private Integer payAmount;
    /*
     *支付状态：0未支付 1已支付 4已退款 99支付失败
     */
    @Column(name = "pay_status")
    private Integer payStatus;
    /*
     *商户号
     */
    @Column(name = "mch_id")
    private String mchId;
    
    /**
     * 随机字符串
     */
    @Column(name = "nonceStr")
    private String nonceStr;
    
    /*
     *预支付交易会话标识
     */
    @Column(name = "prepay_id")
    private String prepayId;
    /*
     *微信支付订单号
     */
    @Column(name = "transaction_id")
    private String transactionId;
    /*
     *支付返回状态码
     */
    @Column(name = "pay_return_code")
    private String payReturnCode;
    /*
     *支付业务结果
     */
    @Column(name = "pay_result_code")
    private String payResultCode;
    /*
     *错误代码
     */
    @Column(name = "err_code")
    private String errCode;
    /*
     *错误代码描述
     */
    @Column(name = "err_code_desc")
    private String errCodeDesc;
    /*
     *后端回调时间
     */
    @Column(name = "callback_time")
    private Date callbackTime;
    /*
     *退款金额
     */
    @Column(name = "refund_fee")
    private Integer refundFee;
    /*
     *退款发起时间
     */
    @Column(name = "refund_req_time")
    private Date refundReqTime;
    /*
     *退款响应时间
     */
    @Column(name = "refund_resp_time")
    private Date refundRespTime;
    /*
     *退款状态
     */
    @Column(name = "refund_status")
    private Integer refundStatus;
    /*
     *退款单号
     */
    @Column(name = "out_refund_no")
    private String outRefundNo;
    /*
     *退款返回状态码
     */
    @Column(name = "refund_return_code")
    private String refundReturnCode;
    /*
     *退款返回业务结果
     */
    @Column(name = "refund_result_code")
    private String refundResultCode;
    /*
     *创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
	public String getOutTradeNo() {
		return outTradeNo;
	}
	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getParticipantId() {
		return participantId;
	}
	public void setParticipantId(String participantId) {
		this.participantId = participantId;
	}
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public Integer getPayAmount() {
		return payAmount;
	}
	public void setPayAmount(Integer payAmount) {
		this.payAmount = payAmount;
	}
	public Integer getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}
	public String getMchId() {
		return mchId;
	}
	public void setMchId(String mchId) {
		this.mchId = mchId;
	}
	public String getNonceStr() {
		return nonceStr;
	}
	public void setNonceStr(String nonceStr) {
		this.nonceStr = nonceStr;
	}
	public String getPrepayId() {
		return prepayId;
	}
	public void setPrepayId(String prepayId) {
		this.prepayId = prepayId;
	}
	public String getTransactionId() {
		return transactionId;
	}
	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}
	public String getPayReturnCode() {
		return payReturnCode;
	}
	public void setPayReturnCode(String payReturnCode) {
		this.payReturnCode = payReturnCode;
	}
	public String getPayResultCode() {
		return payResultCode;
	}
	public void setPayResultCode(String payResultCode) {
		this.payResultCode = payResultCode;
	}
	public String getErrCode() {
		return errCode;
	}
	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}
	public String getErrCodeDesc() {
		return errCodeDesc;
	}
	public void setErrCodeDesc(String errCodeDesc) {
		this.errCodeDesc = errCodeDesc;
	}
	public Date getCallbackTime() {
		return callbackTime;
	}
	public void setCallbackTime(Date callbackTime) {
		this.callbackTime = callbackTime;
	}
	public Integer getRefundFee() {
		return refundFee;
	}
	public void setRefundFee(Integer refundFee) {
		this.refundFee = refundFee;
	}
	public Date getRefundReqTime() {
		return refundReqTime;
	}
	public void setRefundReqTime(Date refundReqTime) {
		this.refundReqTime = refundReqTime;
	}
	public Date getRefundRespTime() {
		return refundRespTime;
	}
	public void setRefundRespTime(Date refundRespTime) {
		this.refundRespTime = refundRespTime;
	}
	public Integer getRefundStatus() {
		return refundStatus;
	}
	public void setRefundStatus(Integer refundStatus) {
		this.refundStatus = refundStatus;
	}
	public String getRefundReturnCode() {
		return refundReturnCode;
	}
	public void setRefundReturnCode(String refundReturnCode) {
		this.refundReturnCode = refundReturnCode;
	}
	public String getRefundResultCode() {
		return refundResultCode;
	}
	public void setRefundResultCode(String refundResultCode) {
		this.refundResultCode = refundResultCode;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getOutRefundNo() {
		return outRefundNo;
	}
	public void setOutRefundNo(String outRefundNo) {
		this.outRefundNo = outRefundNo;
	}
}
